//
//  LiveViewController.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/4/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Event;

@interface LiveViewController : UIViewController <UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate, ASIHTTPRequestDelegate> {
    UISearchBar *liveSearchBar;
    UITableView *liveTableView;
    UIView *maskView;
    
    NSMutableArray *liveEvents;
    NSMutableArray *eventsNeedDisplay;
    Event *selectedEvent;    
}

@property (nonatomic, retain) IBOutlet UISearchBar *liveSearchBar;
@property (nonatomic, retain) IBOutlet UITableView *liveTableView;
@property (nonatomic, retain) IBOutlet UIView *maskView;

@property (nonatomic, retain) NSMutableArray *liveEvents;
@property (nonatomic, retain) NSMutableArray *eventsNeedDisplay;
@property (nonatomic, retain) Event *selectedEvent;

- (IBAction)mapButtonPressed:(id)sender;
- (IBAction)maskViewTapped:(id)sender;

// for searching
- (void)resetSearch;
- (void)handleSearchForTerm:(NSString *)searchTerm;

@end
